/**************************************************************************************************
 *  VARIABLES
 *************************************************************************************************/

 html {
  /* TWEAK: Adapt colors here (might not change colors everywhere) */
  --primary: rgb(45, 107, 220);
  --white: rgb(255, 255, 255);
  --icons: rgba(150, 150, 150, 0.4);

  --overlay-dark1: rgba(0, 0, 0, 0.1);
  --overlay-dark2: rgba(0, 0, 0, 0.2);
  --overlay-dark5: rgba(0, 0, 0, 0.5);
  --overlay-light1: rgba(255, 255, 255, 0.1);
  --overlay-light5: rgba(255, 255, 255, 0.5);

  --opacity-full: 1;
  --opacity-0-8: 0.8;
  --opacity-0-5: 0.5;

  /* TWEAK: Show shadow on floating buttons and local search */
  --shadow: 0 2px 12px 0 var(--overlay-dark2);

  /* TWEAK: Set to none if no borders shall be shown (not tested) */
  --default-border: 1px solid var(--overlay-dark1);

  /* TWEAK: Change to adapt the style of the corners of some UI elements */
  --button-radius: 5px;
  --dialog-radius: 10px;
  --input-radius: 10px;
  --scroll-radius: 3px;

  /* TWEAK: Change the style of the tags */
  --tag-color: var(--primary);
  --tag-font-color: var(--white);
  --tag-radius: 100px;
}

/**************************************************************************************************
 *  GLOBAL STYLES
 *************************************************************************************************/

/* decrease opacity of icons and labels */
/* new notebook button */
.side-bar > div > div > button,
/* external editing button */
.note-list .list-item-container i,
.icon-share,
/* last changed timestamp */
.rli-editor > div > div > div > input + span,
/* toolbar buttons */
.editor-toolbar .button,
.tox .tox-tbtn,
/* toggle editors button */
button[title="Toggle editors"],
/* help buttons */
.fa-question-circle,
/* tags buttons */
span.icon-tags,
/* click to add tags label */
a[Title="Tags"] + div > span {
  opacity: 0.6 !important;
}
/* disabled buttons */
a.button.disabled {
  opacity: 0.3 !important;
}

/* date picker */
.rdtPicker {
  border-radius: var(--dialog-radius) !important;
  padding: 8px !important;
}

/**************************************************************************************************
 *  PANELS
 *************************************************************************************************/
/* remove border from plugin iframes */
div.resizableLayoutItem iframe {
  border-bottom: none !important;
}

/* highlight splitters (vertical and horizontal) while dragging */
.resizableLayoutItem > span > div {
  z-index: 100 !important;
  transition: 0.5s;
}
.resizableLayoutItem > span > div:hover,
.resizableLayoutItem > span > div:active {
  background: var(--primary);
  opacity: var(--opacity-0-5);
}

/* scrollbars */
::-webkit-scrollbar-thumb {
  background-color: var(--overlay-dark1) !important;
  border-radius: var(--scroll-radius) !important;
}

/**************************************************************************************************
 *  SIDEBAR
 *************************************************************************************************/

/* folders */
.folders > div:first-of-type > a {
  text-transform: uppercase !important;
}

/* synchronize area */
.sidebar > div:last-of-type {
  background-color: var(--overlay-dark2) !important;
  text-align: center !important;
}

/* synchronize button */
.sidebar > div:last-of-type > button {
  background-color: var(--overlay-dark2) !important;
  border: none !important;
}
.sidebar > div:last-of-type > button:hover {
  background-color: var(--overlay-light1) !important;
}
.sidebar > div:last-of-type > button span {
  color: var(--overlay-light5) !important;
  text-transform: uppercase !important;
}

/**************************************************************************************************
 *  CODE STYLE
 *************************************************************************************************/
/* 行内代码 背景必须透明，不然没有选中文本的提示 */
.cm-inlineCode {
  border-width: 2px !important;
  border-style: solid;
  border-color: #f9f2f499 !important;
  border-radius: 2px !important;
  background: #f9f2f499 !important;
  color: #c7254e !important;
}

/* 代码块 背景必须透明，不然没有选中文本的提示 */
.cm-codeBlock {
  font-family: "Cascadia Code", Consolas, "Microsoft YaHei", monospace !important;
  border-width: 3px !important;
  border-style: solid;
  border-color: #fafafa99 !important;
  background-color: #f8f8f899 !important;
  padding: 0px !important;
  line-height: 1.26em !important;
}

/* 代码块的标志字体颜色 */
.cm-codeBlock.cm-regionFirstLine, .cm-codeBlock.cm-regionLastLine {
  border-radius: 3px;
  color: #9d9d9d;
}
